package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class AreaDTO {

    @NotNull(message = "区域主键不能为空")
    @Range(min = 1, message = "区域主键为大于或等于1的正整数")
    @ApiModelProperty(value = "区域主键")
    private Integer id;

    @NotBlank(message = "区域名称不能为空")
    @ApiModelProperty(value = "区域名称",notes = "区域名称")
    private String areaName;

    @NotNull(message = "区域的父级主键不能为空")
    @ApiModelProperty(value = "区域父级Id",notes = "区域父级Id")
    private Integer parentAreaId;

    @ApiModelProperty(value = "区域父级名称",notes = "区域父级名称")
    private String parentAreaName;

    public AreaDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Integer getParentAreaId() {
        return parentAreaId;
    }

    public void setParentAreaId(Integer parentAreaId) {
        this.parentAreaId = parentAreaId;
    }

    public String getParentAreaName() {
        return parentAreaName;
    }

    public void setParentAreaName(String parentAreaName) {
        this.parentAreaName = parentAreaName;
    }
}
